import cv2
video = cv2.VideoCapture("yzbf.mp4")
fps=video.get(cv2.CAP_PROP_FPS)
frame_count=video.get(cv2.CAP_PROP_FRAME_COUNT)
frame_width=video.get(cv2.CAP_PROP_FRAME_WIDTH)
frame_height=video.get(cv2.CAP_PROP_FRAME_HEIGHT)
print("帧速率：",fps)
print("帧数：",frame_count)
print("帧的宽度：",frame_width)
print("帧的高度：",frame_height)